import request, {requestString} from '../../utils/request'


// 分页查询订单
export async function getOrderList(params) {
    return request(apiPath.mc + "/api/jgtOrders", {
        method: 'get',
        data: params
    });
}


//根据ID获取订单
export async function getById({ id }){
    return request(apiPath.mc +  "/api/jgtOrder/" + id,{
        method: 'get'
    });
}


//删除订单
export async function deleteById({ id }){
    return request(apiPath.mc + "/api/jgtOrder/" + id,{
        method: 'delete'
    });
}



// //更新订单
export async function updateOrder(data) {
    return request(apiPath.mc + "/api/jgtOrder", {
        method: 'put',
        data
    });
}